package com.tsj.spzx.mapper;

import com.tsj.spzx.model.dto.order.OrderStatisticsDto;
import com.tsj.spzx.model.entity.order.OrderStatistics;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderStatisticsMapper {

    /**
     * 保存订单交易额等信息
     * @param orderStatistics
     */
    void save(OrderStatistics orderStatistics);

    /**
     * 根据日期区间查询订单交易额等信息
     * @param orderStatisticsDto
     * @return
     */
    List<OrderStatistics> getOrderStatisticsData(OrderStatisticsDto orderStatisticsDto);

}
